package com.hhc.repository;

import com.hhc.entity.GradeRecordDO;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *   成绩记录数据库访问与持久化操作
 * </p>
 * @author pc
 */
@Repository
public interface GradeRecordRepository extends JpaRepository<GradeRecordDO, Long> {

    List<GradeRecordDO> findByStudentIdAndCourseId(Long studentId, Long courseId);
    List<GradeRecordDO> findByCourseId(Long courseId);
    List<GradeRecordDO> findByStudentId(Long studentId);
}